package com.hk.controller;

import com.hk.core.R;
import com.hk.core.Result;
import com.hk.core.roleResult.PageRoleResult;
import com.hk.dto.TransferDto;
import com.hk.service.TransferService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/transfer")
public class TransferController {
    @Autowired
    private TransferService transferService;

//   多表分页查询转派
    @GetMapping("/list")
    public PageRoleResult listTransfer(@ModelAttribute TransferDto transferDto){
        return transferService.listTransfer(transferDto);

    }
//    分派任务
    @PutMapping("/assignment/0/1/3")
    public Result assignment(){

        return Result.success();
    }

}
